import { request } from "@/utils/request2";
import { TableResponse, TableResponse2, TableResponse3 } from "./types/Table";
//获取考勤的列表
export async function getkaoqinList(date: string) {
    return await request<TableResponse>({
        url: `/dingding/kaoqin?month=${date}`,
        method: "GET",
        isAuthenticated: true
    })
}
//获取薪酬的列表
export async function getPayList(date: string) {
    return await request<TableResponse2>({
        url: `/dingding/salary?month=${date}`,
        method: "GET",
        isAuthenticated: true
    })
}
//获取假期余额的方法
export async function getHolidayBalancesList(date: string) {
    return await request<TableResponse3>({
        url: `/dingding/leave?month=${date}`,
        method: "GET",
        isAuthenticated: true
    })
}
